/*
 * Barricade.java
 *
 * Created on 2007. mC!rcius 12., 16:51
 *
 */

package laborhazi;

/**
 * Barricade tool - stops the lemming
 * @author nyuszik
 */
public class Barricade extends Tool {
	private Field field;
	
    /** Creates a new instance of Barricade */
	public Barricade() {
    }
    public Barricade(Field f) {
    	field = f;
    }
    public String toString() {
    	return ("Barricade");
    }
    /** 
     * Using the barricade automatically stops the lemming
     * @param lemming the lemming to be stopped
     */
    public void use(Lemming lemming) {
        lemming.stop();
    }
    
}
